<!DOCTYPE HTML>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>后台登录</title>
    <link rel="stylesheet" type="text/css" href="{$this->setting['weburl']}/content/jBox/skin/jbox.css" media="all"/>
    <link rel="stylesheet" href="{$this->themesURL}/images/login.css" type="text/css" media="all"/>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/jquery.min.js"></script>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/js/common.js"></script>
    <script type="text/javascript" src="{$this->themesURL}/js/admin.js"></script>
    <script type="text/javascript" src="{$this->setting['weburl']}/content/jBox/jquery.jBox-2.3.min.js"></script>
    <script type="text/javascript">var host = "{$this->setting['weburl']}", jBoxTip = true; </script>
    <!--[if IE]>
    <script src="http://letskillie6.googlecode.com/svn/trunk/letskillie6.zh_CN.pack.js"></script>
    <![endif]-->
</head>
<body>
<div id="container">
    <div id="login">
        <div id="header"><h1>{$this->setting['webname']}</h1></div>
        <form action="{$this->url( $c, 'validate' )}" method="post">
            <div class="form">
                <p><input class="author required" name="author" tip="false" placeholder="请输入用户名" type="text"/></p>

                <p><input class="password required" name="pass" tip="false" type="password" placeholder="请输入密码"/></p>
                <!--{if $this->setting['is_code']}-->
                <p>
                    <input class="verify required" name="verify" tip="false" placeholder="请计算结果" type="text"/>
                    <img src="{$this->url( $c, 'getcode' )}" id="verify" title="点击刷新"/>
                </p>
                <!--{/if}-->
            </div>
            <div class="bottom">
                <div class="footer">
                    <span class="left">
                         <input type="checkbox" class="checkbox" name="remember" value="2592000" checked/>记住我
                    </span>
                    <span class="right"><a title="登录" href="{$referer}" class="btn login">登陆</a></span>
                </div>
            </div>
        </form>
    </div>
</div>

<script type="text/javascript">
    $( function () {
        $( "#verify" ).click( function () {
            $( this ).attr( 'src', "{$this->url( $c, 'getcode' )}&v=" + new Date().format( 'yyyyMMddhhmmss' ) )
        } );
        $( 'input[name="author"]' ).focus();
        $( "body,.verify,.login" ).keydown( function ( event ) {
            if ( event.which == 13 ) {
                ajaxPOST( $( ".login" ) );
                return false;
            }
        });
        $( ".login" ).click( function () {
            ajaxPOST( $( this ) );
            return false;
        });
    });
</script>
</body>
</html>
